package com.health.mapper;

import com.health.entity.TRolePermision;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-21
 */
public interface TRolePermisionMapper extends BaseMapper<TRolePermision> {

    Boolean addPermissionsStatus(@Param("ids") List<Integer> checkPermissions, @Param("id") Integer id);
    Boolean deletePermissionsStatus(@Param("ids") List<Integer> checkPermissions, @Param("id") Integer id);

    Boolean addSinglePermissionsStatus(@Param("delId") Integer delId, @Param("id") Integer id);
    Boolean deleteSinglePermissionsStatus(@Param("delId") Integer delId, @Param("id") Integer id);
}
